<template>
    <div class="components-container">
        <!-- 详情 -->
        <sweet-modal ref="info" class="dialog">
            <h3>{{title}}</h3>
            <div style="width:700px; margin:30px 50px">
                <div class="layui-form-item">
                    <label class="layui-form-label">业务编号</label>
                    <div class="layui-input-inline">
                        <el-select v-model="deaddata.deadselectno" placeholder="请选择" class="longtext" @change="GetIchInfo">
                            <el-option v-for="item in IceUse" :key="item.REGID" :label="item.REGBUSNUM" :value="item.REGBUSNUM">
                            </el-option>
                        </el-select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">逝者姓名</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.deadName" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">车号</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CARLIC" readonly></el-input>
                        </div>
                    </div>
                    <!-- <div class="layui-inline">
                        <label class="layui-form-label">死亡日期</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.deaddate" readonly></el-input>
                        </div>
                    </div> -->
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">驾驶员</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CDHDRIVER" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                    <label class="layui-form-label">接尸地点</label>
                    <div class="layui-input-inline">
                        <el-input v-model="deaddata.REGADDRESS" readonly></el-input>
                    </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <!-- <div class="layui-inline">
                        <label class="layui-form-label">经办家属</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkMan" readonly></el-input>
                        </div>
                    </div> -->
                    <div class="layui-inline">
                        <label class="layui-form-label">联系人</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkMan" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">联系电话</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkTel" readonly></el-input>
                        </div>
                    </div>
                    <!-- <div class="layui-inline">
                        <label class="layui-form-label">车号</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CARLIC" readonly></el-input>
                        </div>
                    </div> -->
                    <!-- <div class="layui-inline">
                        <label class="layui-form-label">联系人</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CDHLINKMAN" readonly></el-input>
                        </div>
                    </div> -->
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">存入时间</label>
                        <div class="layui-input-inline">
                            <el-date-picker v-date class="longtext" v-model="ichdataExtend.saveDates" type="datetime" format="yyyy-MM-dd HH:mm"  placeholder="选择日期时间" readonly> </el-date-picker>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">取出时间</label>
                        <div class="layui-input-inline">
                            <el-date-picker v-date class="longtext" v-model="ichdataExtend.ichEndDates" type="datetime" format="yyyy-MM-dd HH:mm" placeholder="选择日期时间" readonly> </el-date-picker>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">冰柜号</label>
                        <div class="layui-input-inline">
                            <el-input v-model="ichdata.iceno" readonly></el-input>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item"  v-if="showjbr">
                          <div class="layui-inline">
                            <label class="layui-form-label">进柜人</label>
                            <div class="layui-input-inline">
                                   <el-input v-model="ichdata.ICHCHKUSR" readonly></el-input>
                            </div>
                            </div>
                          <div class="layui-inline" v-if="showcgr" >
                            <label class="layui-form-label">出柜人</label>
                            <div class="layui-input-inline">
                                   <el-input v-model="ichdata.ICHCABINETMAN" readonly></el-input>
                            </div>
                            </div>
                </div>
            </div>
            <div class="layui-form-item btnCenter">
                <el-button @click="infoClose">取消</el-button>
                <el-button v-if="isShowSubmit" type="primary" @click="submitEdit">提交</el-button>
                <el-button v-if="isInforprint" type="primary" @click="getprint('详情')">打印冷藏服务单</el-button>
            </div>
        </sweet-modal>
        <!-- 奉化详情 -->
        <sweet-modal ref="infofh" class="dialog">
            <h3>{{title}}</h3>
            <div style="width:700px; margin:30px 50px">
                <div class="layui-form-item">
                    <label class="layui-form-label">业务编号</label>
                    <div class="layui-input-inline">
                        <el-input v-model="deaddata.deadselectno" readonly></el-input>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">逝者姓名</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.deadName" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">车号</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CARLIC" readonly></el-input>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">驾驶员</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CDHDRIVER" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                    <label class="layui-form-label">接尸地点</label>
                    <div class="layui-input-inline">
                        <el-input v-model="deaddata.REGADDRESS" readonly></el-input>
                    </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">联系人</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkMan" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">联系电话</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkTel" readonly></el-input>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">存入时间</label>
                        <div class="layui-input-inline">
                            <el-date-picker v-date class="longtext" v-model="ichdataExtend.saveDates" format="yyyy-MM-dd HH:mm"  type="datetime" placeholder="选择日期时间" readonly> </el-date-picker>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">取出时间</label>
                        <div class="layui-input-inline">
                            <el-date-picker v-date class="longtext" v-model="ichdataExtend.ichEndDates" format="yyyy-MM-dd HH:mm"  type="datetime" placeholder="选择日期时间" readonly> </el-date-picker>
                        </div>
                    </div>
                </div>
                 <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">冰柜号</label>
                        <div class="layui-input-inline">
                            <el-input v-model="ichdata.iceno" readonly></el-input>
                        </div>
                    </div>
                 </div>
                  <div class="layui-form-item"  v-if="showjbr">
                    <div class="layui-inline">
                    <label class="layui-form-label">进柜人</label>
                    <div class="layui-input-inline">
                            <el-input v-model="ichdata.ICHCHKUSR" readonly></el-input>
                    </div>
                    </div>
                    <div class="layui-inline" v-if="showcgr" >
                    <label class="layui-form-label">出柜人</label>
                    <div class="layui-input-inline">
                            <el-input v-model="ichdata.ICHCABINETMAN" readonly></el-input>
                    </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item btnCenter">
                <el-button @click="infoClose">取消</el-button>
                <el-button v-if="isShowSubmit" type="primary" @click="submitEdit">提交</el-button>
            </div>
        </sweet-modal>
        <!-- 修改 -->
        <sweet-modal ref="modify" class="dialog">
            <h3>{{title}}</h3>
            <div style="width:700px; margin:30px 50px">
                <div class="layui-form-item">
                    <label class="layui-form-label">业务编号</label>
                    <div class="layui-input-inline">
                        <el-select v-model="deaddata.deadselectno" placeholder="请选择" class="longtext" @change="GetIchInfo">
                            <el-option v-for="item in IceUse" :key="item.REGID" :label="item.REGBUSNUM" :value="item.REGBUSNUM">
                            </el-option>
                        </el-select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">逝者姓名</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.deadName" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">车号</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CARLIC" readonly></el-input>
                        </div>
                    </div>
                    <!-- <div class="layui-inline">
                        <label class="layui-form-label">死亡日期</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.deaddate" readonly></el-input>
                        </div>
                    </div> -->
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">驾驶员</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CDHDRIVER" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                    <label class="layui-form-label">接尸地点</label>
                    <div class="layui-input-inline">
                        <el-input v-model="deaddata.REGADDRESS" readonly></el-input>
                    </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <!-- <div class="layui-inline">
                        <label class="layui-form-label">经办家属</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkMan" readonly></el-input>
                        </div>
                    </div> -->
                    <div class="layui-inline">
                        <label class="layui-form-label">联系人</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkMan" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">联系电话</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkTel" readonly></el-input>
                        </div>
                    </div>
                    <!-- <div class="layui-inline">
                        <label class="layui-form-label">车号</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CARLIC" readonly></el-input>
                        </div>
                    </div> -->
                    <!-- <div class="layui-inline">
                        <label class="layui-form-label">联系人</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CDHLINKMAN" readonly></el-input>
                        </div>
                    </div> -->
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">存入时间</label>
                        <div class="layui-input-inline">
                            <el-date-picker v-date class="longtext" v-model="ichdataExtend.saveDates" format="yyyy-MM-dd HH:mm"  type="datetime" placeholder="选择日期时间" readonly> </el-date-picker>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">冰柜号</label>
                        <div class="layui-input-inline">
                            <el-select v-model="icedata.iceid" filterable placeholder="请选择">
                                <el-option
                                v-for="item in icelist"
                                :key="item.ICEID"
                                :label="item.ICENAME"
                                :value="item.ICEID">
                                </el-option>
                            </el-select>
                        </div>
                    </div>
                </div>
             <div class="layui-form-item"  v-if="showjbr">
                          <div class="layui-inline">
                            <label class="layui-form-label">进柜人</label>
                            <div class="layui-input-inline">
                                <el-select v-model="ichdata.ICHCHKUSR" placeholder="请选择经办人" style="width:100%">
                                <el-option v-for="item in icejbr" :key="item.value" :label="item.label" :value="item.value">
                                </el-option>
                                </el-select>
                            </div>
                            </div>
                          <div class="layui-inline" v-if="showcgr" >
                            <label class="layui-form-label">出柜人</label>
                            <div class="layui-input-inline">
                                <el-select v-model="ichdata.ICHCABINETMAN" placeholder="请选择经办人" style="width:100%">
                                <el-option v-for="item in icejbr" :key="item.value" :label="item.label" :value="item.value">
                                </el-option>
                                </el-select>
                            </div>
                            </div>
                </div>
            </div>
            <div class="layui-form-item btnCenter">
                <el-button @click="infoClose">取消</el-button>
                <el-button v-if="isShowSubmit" type="primary" @click="submitModify">提交</el-button>
            </div>
        </sweet-modal>
        <!-- 存入 -->
        <sweet-modal ref="dialogIn" class="dialog">
            <h3>{{title}}</h3>
            <div style="width:700px; margin:30px 50px">
                <div class="layui-form-item">
                    <label class="layui-form-label">业务编号</label>
                    <div class="layui-input-inline">
                        <el-input v-model="deaddata.deadseachno" placeholder="请选取逝者" v-focus @keyup.native="SeachDead($event)"></el-input>
                    </div>
                    <el-button type="primary" @click="openRegCheck">选取逝者</el-button>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">逝者姓名</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.deadName" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">车号</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CARLIC" readonly></el-input>
                        </div>
                    </div>
                    <!-- <div class="layui-inline">
                        <label class="layui-form-label">死亡日期</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.deaddate" readonly></el-input>
                        </div>
                    </div> -->
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">驾驶员</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CDHDRIVER" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">接尸地点</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CDHADDRESS" readonly></el-input>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <!-- <div class="layui-inline">
                        <label class="layui-form-label">经办家属</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkMan" readonly></el-input>
                        </div>
                    </div> -->
                    <div class="layui-inline">
                        <label class="layui-form-label">联系人</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkMan" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">联系电话</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkTel" readonly></el-input>
                        </div>
                    </div>
                    <!-- <div class="layui-inline">
                        <label class="layui-form-label">车号</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CARLIC" readonly></el-input>
                        </div>
                    </div> -->
                    <!-- <div class="layui-inline">
                        <label class="layui-form-label">联系人</label>
                        <div class="layui-input-inline">
                            <el-input v-model="cdhdata.CDHLINKMAN" readonly></el-input>
                        </div>
                    </div> -->
                </div>
                
                <div class="layui-form-item">
                    <div class="layui-inline">
                    <label class="layui-form-label">存入时间</label>
                    <div class="layui-input-inline">
                        <el-date-picker v-date v-model="ichdataExtend.saveDates" format="yyyy-MM-dd HH:mm" type="datetime" class="longtext" placeholder="选择日期时间"> </el-date-picker>
                    </div>
                    </div>
                    <div class="layui-inline" v-if="isTableIce === 1">
                        <label class="layui-form-label">冰柜号</label>
                        <div class="layui-input-inline">
                            <el-select v-model="icedata.iceid" filterable placeholder="请选择">
                                <el-option
                                v-for="item in icelist"
                                :key="item.ICEID"
                                :label="item.ICENAME"
                                :value="item.ICEID">
                                </el-option>
                            </el-select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item"  v-if="showjbr">
                          <div class="layui-inline">
                            <label class="layui-form-label">进柜人</label>
                            <div class="layui-input-inline">
                                <el-select v-model="ichdata.ICHCHKUSR" placeholder="请选择经办人" style="width:100%">
                                <el-option v-for="item in icejbr" :key="item.value" :label="item.label" :value="item.value">
                                </el-option>
                                </el-select>
                            </div>
                            </div>
                </div>
            </div>
            <div class="layui-form-item btnCenter">
                <el-button @click="cancel">取消</el-button>
                <el-button type="primary" @click="submitAdd">提交</el-button>
                <el-button v-if="isShowprint" type="primary" @click="getprint('存入')">打印冷藏服务单</el-button>
            </div>
        </sweet-modal>
        <!-- 取出 -->
        <sweet-modal ref="dialogOut" class="dialog">
            <h3>{{title}}</h3>
            <div style="width:700px; margin:30px 50px">
                <div class="layui-form-item">
                    <label class="layui-form-label">业务编号</label>
                    <div class="layui-input-inline">
                        <el-select v-model="deaddata.deadselectno" placeholder="请选择" class="longtext" @change="GetIchInfo">
                            <el-option v-for="item in IceUse" :key="item.REGID" :label="item.REGBUSNUM" :value="item.REGBUSNUM">
                            </el-option>
                        </el-select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">逝者姓名</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.deadName" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">死亡日期</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.deaddate" readonly></el-input>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">经办家属</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkMan" readonly></el-input>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">联系电话</label>
                        <div class="layui-input-inline">
                            <el-input v-model="deaddata.linkTel" readonly></el-input>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">存入时间</label>
                        <div class="layui-input-inline">
                            <el-date-picker type="datetime" v-model="ichdataExtend.saveDates" format="yyyy-MM-dd HH:mm"  class="longtext" readonly></el-date-picker>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">取出时间</label>
                        <div class="layui-input-inline">
                            <el-date-picker v-date class="longtext" v-model="ichdataExtend.ichEndDates" format="yyyy-MM-dd HH:mm" type="datetime" placeholder="选择日期时间"> </el-date-picker>
                        </div>
                    </div>
                </div>
              <div class="layui-form-item"  v-if="showjbr">
                          <div class="layui-inline">
                            <label class="layui-form-label">进柜人</label>
                            <div class="layui-input-inline">
                                <el-select v-model="ichdata.ICHCHKUSR" placeholder="请选择经办人" style="width:100%">
                                <el-option v-for="item in icejbr" :key="item.value" :label="item.label" :value="item.value">
                                </el-option>
                                </el-select>
                            </div>
                            </div>
                          <div class="layui-inline">
                            <label class="layui-form-label">出柜人</label>
                            <div class="layui-input-inline">
                                <el-select v-model="ichdata.ICHCABINETMAN" placeholder="请选择经办人" style="width:100%">
                                <el-option v-for="item in icejbr" :key="item.value" :label="item.label" :value="item.value">
                                </el-option>
                                </el-select>
                            </div>
                            </div>
                </div>
            </div>
            <div class="layui-form-item btnCenter">
                <el-button @click="cancel">取消</el-button>
                <el-button type="primary" @click="submitOut">提交</el-button>
            </div>
        </sweet-modal>
        <!-- 登记 -->
        <sweet-modal ref="dialogReg" class="dialog">
            <h3>{{title}}</h3>
            <div style="margin:30px 50px">
                <div class="layui-form-item">
                    <label class="layui-form-label">逝者类型</label>
                    <div class="layui-input-inline">
                        <el-select v-model="regData.REGBONETYPE" clearable placeholder="请选择逝者类型">
                            <el-option v-for="item in boneType" :key="item.CodeValue" :label="item.CodeName" :value="item.CodeValue">
                            </el-option>
                        </el-select>
                    </div>
                    <label class="layui-form-label">逝者姓名</label>
                    <div class="layui-input-inline">
                        <el-input v-model="regData.REGNAME" placeholder="请输入逝者姓名"> </el-input>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">逝者性别</label>
                    <div class="layui-input-inline">
                        <el-select v-model="regData.REGSEX" placeholder="请选择逝者性别">
                            <el-option v-for="item in sex" :key="item.CodeValue" :label="item.CodeName" :value="item.CodeValue">
                            </el-option>
                        </el-select>
                    </div>
                    <label class="layui-form-label">经办家属</label>
                    <div class="layui-input-inline">
                        <el-input placeholder="请输入经办家属" v-model="regData.REGHANDLERNAME"></el-input>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">联系电话</label>
                    <div class="layui-input-inline">
                        <el-input v-model="regData.REGHANDLERLINK" placeholder="请输入联系电话"></el-input>
                    </div>
                    <label class="layui-form-label">接尸时间</label>
                    <div class="layui-input-inline">
                        <el-date-picker v-date v-model="jsDataTime" type="datetime" placeholder="选择日期时间"> </el-date-picker>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">死亡原因</label>
                    <div class="layui-input-inline">
                        <el-cascader :options="cause" v-model="cauinfo" filterable clearable>
                        </el-cascader>
                    </div>
                    <label class="layui-form-label">接尸地点</label>
                    <div class="layui-input-inline">
                        <!-- <el-cascader :options="addList" v-model="addinfo" filterable clearable>
                        </el-cascader> -->
                        <el-input v-model="regData.REGADDRESS" placeholder="请输入接尸地址"></el-input>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">接尸车辆</label>
                    <div class="layui-input-inline">
                        <el-cascader :options="carLics" v-model="cdhinfo" filterable clearable>
                        </el-cascader>
                    </div>
                    <label class="layui-form-label">驾驶员</label>
                    <div class="layui-input-inline">
                        <el-select v-model="driver" clearable placeholder="请选择">
                            <el-option v-for="item in driverList" :key="item.STAID" :label="item.STANAME" :value="item.STAID">
                            </el-option>
                        </el-select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">存入时间</label>
                    <div class="layui-input-inline">
                        <el-date-picker v-date v-model="crDataTime" format="yyyy-MM-dd HH:mm" type="datetime" placeholder="选择日期时间"> </el-date-picker>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-inline">
                            <el-input v-model="regData.REGREMARK" type="textarea" class="longtext" style="width:465px"></el-input>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline" v-if="isTableIce === 1">
                        <label class="layui-form-label">冰柜号</label>
                        <div class="layui-input-inline">
                            <el-select v-model="icedata.iceid" filterable placeholder="请选择">
                                <el-option
                                v-for="item in icelist"
                                :key="item.ICEID"
                                :label="item.ICENAME"
                                :value="item.ICEID">
                                </el-option>
                            </el-select>
                        </div>
                    </div>
                </div>
                 <div class="layui-form-item"  v-if="showjbr">
                          <div class="layui-inline">
                            <label class="layui-form-label">进柜人</label>
                            <div class="layui-input-inline">
                                <el-select v-model="ichdata.ICHCHKUSR" placeholder="请选择经办人" style="width:100%">
                                <el-option v-for="item in icejbr" :key="item.value" :label="item.label" :value="item.value">
                                </el-option>
                                </el-select>
                            </div>
                            </div>
                </div>
            </div>
            <div class="dialog-footer" style="text-align:center;">
                <el-button @click="cancel">取消</el-button>
                <el-button v-if="!isShowprint" @click="submitReg" type="primary">登记</el-button>
                <el-button v-if="isShowprint" type="primary" @click="getprint('登记')">打印冷藏服务单</el-button>
            </div>
        </sweet-modal>
        <!-- 逝者选择 -->
        <sweet-modal ref="deadSelect" class="dialog">
            <h3>逝者选择</h3>
            <div class="layui-form-item">
                <label class="layui-form-label">到馆时间</label>
                <div class="layui-input-inline">
                    <el-date-picker v-date v-model="regCheckDate" @change="getRegData" type="date" placeholder="选择日期时间"> </el-date-picker>
                </div>
            </div>
            <div style="height:400px;max-height:400px;overflow:auto;">
                <table class="layui-table">
                    <thead>
                        <tr>
                            <th>业务编号</th>
                            <th>逝者姓名</th>
                            <th>联系人</th>
                            <th>死亡日期</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr v-for="item in regCheckList">
                            <td>{{item.REGBUSNUM}}</td>
                            <td>{{item.REGNAME}}</td>
                            <td>{{item.REGHANDLERNAME}}</td>
                            <td>{{item.REGDEATHDATE}}</td>
                            <td><button @click="getDead(item)" class="layui-btn layui-btn-normal">选择</button></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </sweet-modal>
        <printmodal ref="printPdf"></printmodal>
    </div>
</template>

<style rel="stylesheet/scss" lang="scss" scoped>

</style>
<script>
    import apiBase from "@/api/apiBase.js";
    import {
        formatDate,
        timeStringToDate
    } from "@/utils/date.js";
    import sweetModal from "@/components/sweetModal";
    import printmodal from "@/components/Pdf/Print";
    import { PRINT } from "@/components/Pdf/PDF.js";
    import {
        manage
    } from "@/mixins/managePage.js";
    const REG = "登记";
    const INFO = "详情";
    const IN = "存入";
    const OUT = "取出";
    const DELETE = "删除";
    const fhxq = "fhxq"
    export default {
        name: "iceUseMain",
        mixins: [manage],
        data() {
            return {
                isprint:null,
                showjbr:null,
                showcgr:null,
                icelist: [],
                icejbr: [],  //经办人下拉
                isTableIce: null,
                isShowSubmit:true,
                isShowprint:false,
                deaddata: {
                    deadseachno: null,
                    deadselectno: null,
                    deadid: null,
                    deadName: null,
                    deaddate: null,
                    linkMan: null,
                    linkTel: null,
                    deadRemark: null,
                },
                cdhdata: {
                    CARLIC: null,
                    CDHADDRESS: null,
                    CDHLINKMAN: null,
                    CDHDRIVER: null,
                },
                ichInfo: {},
                icedata: {
                    iceid: null,
                    icename: null,
                    iceuse: []
                },
                ichdata: {
                    ichid: null,
                    iceid: null,
                    iceno: null,
                    savedate: null,
                    savetime: null,
                    takedate: null,
                    taketime: null,
                    ichiceid: null,
                    ICHCHKUSR: null,//-- 进柜人
                    ICHCABINETMAN: null,//-- 出柜人
                },
                ichdataExtend: {
                    ichEndDates: null,
                    saveDates: null,
                },
                regCheckDate: null,
                regCheckList: null,
                regData: {
                    REGBONETYPE: null,
                    REGNAME: null,
                    REGSEX: null,
                    REGHANDLERNAME: null,
                    REGREMARK: null,
                    REGADDRESS: null,
                    REGHANDLERLINK: null,
                },
                driver: null,
                cauinfo: null,
                addinfo: null,
                cdhinfo: null,
                crDataTime: null,
                jsDataTime: null,
                IceUse: [], //取出  业务编号
                driverList: [],
                boneType: [],
                sex: [],
                cause: [],
                carLics: [],
                addList: [],
                operCodelist: [],
                QueryDriver: [],
                ICHSTATUS: null,
                regid:null,
                isInforprint:null,
            }
        },
        methods: {
            open(order, ice) {
                if(ice){
                    this.ICHSTATUS = ice.ICHSTATUS;
                };
                if(this.isTableIce === 0) {
                    this.icedata.iceid = ice.ICEID;
                    this.geticenotuse(this.icedata.iceid);
                    this.dataRepeat();
                    this.order = order;
                    switch (this.order) {
                        case IN:
                            this.title = "冰柜使用存入";
                            // this.dataRepeat();
                            this.$refs.dialogIn.open();
                            break;
                        case OUT:
                            this.title = "冰柜使用取出";
                            this.IceUse = ice.IceUse;
                            this.deaddata.deadselectno = ice.IceUse[0].REGBUSNUM;
                            this.GetIchInfo();
                            this.$refs.dialogOut.open();
                            break;
                        case INFO:
                            this.title = "冰柜使用详情";
                            if(this.isprint){
                               this.isInforprint=true
                            }
                            this.IceUse = ice.IceUse;
                            this.deaddata.deadselectno = ice.IceUse[0].REGBUSNUM;
                            this.GetIchInfo();
                            this.isShowSubmit=false;
                            this.$refs.info.open();
                            break;
                        case REG:
                            this.title = "冰柜使用登记";
                            this.initRegData();
                            this.$refs.dialogReg.open();
                            break;
                        case DELETE:
                            this.title = "冰柜使用删除";
                            this.IceUse = ice.IceUse;
                            this.deaddata.deadselectno = ice.IceUse[0].REGBUSNUM;
                            this.GetIchInfo();
                            this.isShowSubmit=true;
                            this.$refs.info.open();
                            break;
                        default:
                    }
                } else if(this.isTableIce === 1){ //奉化
                    this.order = order;
                    if(ice != null){
                        this.icedata.iceid = ice.ICEID;
                        this.geticenotuse(this.icedata.iceid);
                    }else{
                        this.geticenotuse('');
                    }
                    
                    this.dataRepeat();
                switch (this.order) {
                    case IN:
                        this.title = "冰柜使用存入";
                        // this.dataRepeat();
                        this.$refs.dialogIn.open();
                        break;
                    case OUT:
                        this.icedata.iceid = ice.ICEID;
                        this.title = "冰柜使用取出";
                        this.IceUse = ice.IceUse;
                        this.deaddata.deadselectno = ice.REGBUSNUM;
                        this.GetIchInfo();
                        this.$refs.dialogOut.open();
                        break;
                    case INFO:
                        // this.dataRepeat();
                        this.icedata.iceid = ice.ICEID;
                        this.title = "冰柜使用详情";
                        this.IceUse = ice.IceUse;
                        this.deaddata.deadselectno = ice.REGBUSNUM;
                        this.GetIchInfo();
                        this.isShowSubmit=false;
                        this.$refs.info.open();
                        break;
                     case fhxq:
                        this.icedata.iceid = ice.ICEID;
                        this.title = "冰柜使用详情";
                        this.IceUse = ice.IceUse;
                        this.deaddata.deadselectno = ice.REGBUSNUM;
                        this.GetIchInfo();
                        this.isShowSubmit=false;
                        this.$refs.infofh.open();
                        break;
                    case '修改':
                        this.isShowSubmit=true;
                        // this.dataRepeat();
                        this.icedata.iceid = ice.ICEID;
                        this.title = "冰柜使用修改";
                        this.IceUse = ice.IceUse;
                        this.deaddata.deadselectno = ice.REGBUSNUM;
                        this.GetIchInfo();
                        this.$refs.modify.open();
                        break;
                    case REG:
                        this.title = "冰柜使用登记";
                        // this.dataRepeat();
                        this.initRegData();
                        // this.geticenotuse();
                        this.$refs.dialogReg.open();
                        break;
                    case DELETE:
                        this.icedata.iceid = ice.ICEID;
                        this.title = "冰柜使用删除";
                        this.IceUse = ice.IceUse;
                        this.deaddata.deadselectno = ice.REGBUSNUM;
                        this.GetIchInfo();
                         this.isShowSubmit=true;
                        this.$refs.info.open();
                        break;
                    default:
                }
                }
            },
            cancel() {
                switch (this.order) {
                    case IN:
                        this.$refs.dialogIn.close();
                        break;
                    case OUT:
                        this.$refs.dialogOut.close();
                        break;
                    case DELETE:
                    case INFO:
                        this.$refs.info.close();
                        break;
                    case REG:
                        this.$refs.dialogReg.close();
                        break;
                }
            },
            GetIchInfo() {
                let data = {
                    ICHICEID: this.icedata.iceid,
                    ICHREGBUSNUM: this.deaddata.deadselectno
                };
                apiBase.DoService(
                    data,
                    apiBase.getApiAdress().IceUse.GetRegistrationAndUseByNo,
                    res => {
                        this.ichInfo = res.data.content;
                        let reg = res.data.content.REG;
                        let ich = res.data.content.ICH;
                        let cdh = res.data.content.CDH;
                        if (reg) {
                            this.deaddata.deadid = reg.REGID; 
                            this.deaddata.deadName = reg.REGNAME;
                            this.deaddata.deaddate = reg.REGDEATHDATE;
                            this.deaddata.linkMan = reg.REGHANDLERNAME; 
                            this.deaddata.linkTel = reg.REGHANDLERLINK; 
                            this.deaddata.REGADDRESS = reg.REGADDRESS;
                        }
                        if (ich) {
                            this.ichdata.takedate = ich.ICHENDDATE;
                            this.ichdata.taketime = ich.ICHENDTIME;
                            this.ichdata.savedate = ich.ICHBEGDATE;
                            this.ichdata.savetime = ich.ICHBEGTIME;
                            this.ichdata.iceno = ich.ICENO;
                            this.ichdata.ichid = ich.ICHID;
                            this.ichdata.iceid = ich.ICHICEID;
                            this.ichdata.ICHCHKUSR = ich.ICHCHKUSR; //上虞进柜人 详情
                            this.ichdataExtend.saveDates = timeStringToDate(
                                this.ichdata.savetime, this.ichdata.savedate
                            );

                            // this.ichdataExtend.ichEndDates = timeStringToDate(
                            //     this.ichdata.taketime, this.ichdata.takedate
                            // );
                        }
                        if(cdh){
                            this.cdhdata.CARLIC = cdh.CARLIC;
                            this.cdhdata.CDHADDRESS = cdh.CDHADDRESS;
                            this.cdhdata.CDHLINKMAN = cdh.CDHLINKMAN;
                            this.cdhdata.CDHDRIVER = cdh.CDHDRIVER;
                        }
                    });
            },
            //打开逝者选取
            openRegCheck() {
                this.regCheckDate = new Date();
                this.getRegData();
                this.$refs.deadSelect.open();
                // this.regCheckVisible = true;
            },
            getprint(val){
            switch (val) {
                case "存入":
                case "登记":
                   this.$refs.printPdf.open(PRINT.PDFICEDICE,this.regid);
                    break;
                case "详情":
                   this.$refs.printPdf.open(PRINT.PDFICEDICE,this.deaddata.deadid);
                    break;
                default:
                    break;
            }
       
            },
            submitAdd() {
                //确定存入
                let data = {
                    //请求体
                    ICHICEID: this.icedata.iceid,//冰柜id
                    ICHREGBUSNUM: this.deaddata.deadseachno,//逝者编号
                    ICHBEGDATE: this.ichdata.savedate,//存入时间
                    ICHBEGTIME: this.ichdata.savetime,//存入日期
                    ICHCHKUSR: this.ichdata.ICHCHKUSR,//进柜人
                };
                apiBase.DoService(
                    data,
                    apiBase.getApiAdress().IceUse.StartUse,
                    res => {
                        // this.cancel();
                        this.refreshData();
                        this.$message.success("存入成功");
                        if(this.isprint==true && res.data.msg=="成功"){
                           this.isShowprint=true
                           this.regid=res.data.content.ICHREGID
                        }else{
                        this.$refs.dialogIn.close();
                        }
                    }
                );
            },
            submitOut() {
                let data = {
                    //请求体
                    ICHICEID: this.icedata.iceid,
                    ICHREGID: this.deaddata.deadid,
                    ICHENDDATE: this.ichdata.takedate,
                    ICHENDTIME: this.ichdata.taketime,
                    ICHCHKUSR: this.ichdata.ICHCHKUSR,
                    ICHCABINETMAN: this.ichdata.ICHCABINETMAN,
                };
                apiBase.DoService(
                    data,
                    apiBase.getApiAdress().IceUse.EndUse,
                    res => {
                        this.refreshData();
                        this.$refs.dialogOut.close();
                        this.$message.success("取出成功");
                    }
                );
            },
            //登记
            submitReg() {
                if (this.cauinfo != null) {
                    this.regData.REGCAUSA = this.cauinfo[0];
                    this.regData.REGCAUSASON = this.cauinfo[1];
                } else {
                    this.regData.REGCAUSA = this.cauinfo;
                    this.regData.REGCAUSASON = this.cauinfo;
                }
                if (this.cdhinfo != null) {
                     this.regData.Cdh = {
                         CDHCARID: this.cdhinfo[1],
                         CDHDRIVER: this.driver
                     };
                } else {
                     this.regData.Cdh = {
                         CDHCARID: this.cdhinfo,
                         CDHDRIVER: this.driver
                     };
                }
                this.regData.REGDATE = formatDate(this.jsDataTime, "yyyyMMdd");
                this.regData.REGTIME = formatDate(this.jsDataTime, "hhmmss");
                let data = JSON.parse(JSON.stringify(this.regData));
                data.Ich = {
                    ICHICEID: this.icedata.iceid,
                    ICHCHKUSR: this.ichdata.ICHCHKUSR,
                    ICHBEGDATE: formatDate(this.crDataTime, "yyyyMMdd"),
                    ICHBEGTIME: formatDate(this.crDataTime, "hhmmss")
                };
                apiBase.DoService(
                    data,
                    apiBase.getApiAdress().IceUse.Registation,
                    res => {
                        this.refreshData();
                        this.$message.success("登记成功");
                        if(this.isprint==true && res.data.msg=="成功"){
                           this.isShowprint=true
                           this.regid=res.data.content.REGID
                        }else{
                        this.$refs.dialogReg.close();
                        }
                    }
                );
            },
            //删除 || 详情
            submitEdit() {
                if (this.order === DELETE) {
                    let data = {
                        ICHID: this.ichdata.ichid
                    };
                    apiBase.DoService(data, apiBase.getApiAdress().IceUse.Delete, res => {
                        this.refreshData();
                        this.$refs.info.close();
                        this.$message.success("删除成功");
                    });
                }
                if (this.order === INFO) {
                    this.infoClose();
                }
            },
            // 修改
            submitModify() {
                if (this.order === '修改') {
                    let Data = {
                        ICHID: this.ichdata.ichid,
                        ICHICEID: this.icedata.iceid,
                        ICHREGID: this.deaddata.deadid,
                        reg: {
                            REGID: this.deaddata.deadid,
                            REGADDRESS: this.deaddata.REGADDRESS,
                        },
                    };
                    let data = JSON.parse(JSON.stringify(Data));
                    apiBase.DoService(data, apiBase.getApiAdress().IceUse.Modify, res => {
                        this.refreshData();
                        this.$refs.modify.close();
                        this.$message.success("修改成功");
                        
                    });
                }
            },
            //获取火化登记数据
            getRegData() {
                let data = {
                    Data: {
                        RegdateEquals: formatDate(this.regCheckDate, "yyyyMMdd")
                    }
                };
                apiBase.DoService(
                    data,
                    apiBase.getApiAdress().Registration.QueryRegistration,
                    res => {
                        this.regCheckList = res.data.content.OutData;
                        // this.cdhdata.CARLIC = res.data.content.CARLIC;
                        // this.cdhdata.CDHADDRESS = res.data.content.CARLIC;
                        // this.cdhdata.CDHLINKMAN = res.data.content.CARLIC;
                    }
                );
            },
            //初始化登记
            initRegData() {
                this.crDataTime = new Date();
                this.jsDataTime = null;
                this.driver = null;
                this.cauinfo = [];
                this.cdhinfo = [];
                this.getBoneType();
                this.getSex();
                this.getCausa();
                this.getCar();
                this.getAddressMap();
                this.getDriver();
                Object.assign(this.$data.regData, this.$options.data().regData);
            },
            dataRepeat() {
                this.deaddata.deadseachno = null;
                this.deaddata.deadid = null;
                this.deaddata.deadName = null;
                this.deaddata.deaddate = null;
                this.deaddata.linkMan = null;
                this.deaddata.linkTel = null;
                this.deaddata.deadRemark = null;
                this.cdhdata.CARLIC = null;
                this.cdhdata.CDHADDRESS = null;
                this.cdhdata.CDHLINKMAN = null;
                this.cdhdata.CDHADDRESS = null;
                this.cdhdata.CDHDRIVER = null;
                this.ichdata.ICHCHKUSR = null;
                this.ichdata.ICHCABINETMAN = null;
                this.ichdataExtend = {};
                this.isInforprint = false;
                this.isShowprint = false;
                // this.ichdataExtend.ichEndDates = null;
                
                // this.icedata.iceid = null
            },
            getBoneType() {
                let data = {};
                apiBase.DoService(data, apiBase.getApiAdress().Code.GetBoneType, res => {
                    this.boneType = res.data.content;
                });
            },
            getSex() {
                let data = {};
                apiBase.DoService(data, apiBase.getApiAdress().Code.GetSex, res => {
                    this.sex = res.data.content;
                });
            },
            getDriver() {
                let data = {};
                apiBase.DoService(data, apiBase.getApiAdress().Staff.QueryDriver, res => {
                    this.driverList = res.data.content;
                });
            },
            //获取死亡原因
            getCausa() {
                let data = {};
                apiBase.DoService(data, apiBase.getApiAdress().Code.GetCausa, res => {
                    let caudata = res.data.content;
                    this.cause = caudata.map(item => ({
                        label: item.CAENAME,
                        value: item.CAEID,
                        children: item.Caus.map(itemCau => ({
                            label: itemCau.CAUNAME,
                            value: itemCau.CAUID
                        }))
                    }));
                });
            },
            //获取车辆信息
            getCar() {
                let data = {};
                apiBase.DoService(
                    data,
                    apiBase.getApiAdress().Car.QueryCarByType,
                    res => {
                        let cardata = res.data.content;
                        let legendsCarData = cardata.map(item => ({
                            label: item.CodeName,
                            value: item.CodeValue,
                            children: item.list_Cars.map(caritem => ({
                                label: caritem.CARLIC,
                                value: caritem.CARID
                            }))
                        }));
                        this.carLics = legendsCarData;
                        // this.carLics.push({
                        //     label: "自送",
                        //     value: null,
                        //     children: [{
                        //         label: "自送",
                        //         value: null
                        //     }]
                        // });
                    }
                );
            },
            //获取地址
            getAddressMap() {
                let data = {};
                apiBase.DoService(
                    data,
                    apiBase.getApiAdress().Code.GetAddressMap,
                    res => {
                        let addData = res.data.content;
                        let legendsAddData = addData.map(first => ({
                            label: first.ADDNAME,
                            value: first.ADDID,
                            children: first.Children.map(second => ({
                                label: second.ADDNAME,
                                value: second.ADDID
                            }))
                        }));
                        this.addList = legendsAddData;
                    }
                );
            },
            //获取操作码
            getOperatingCode() {
                let data = {
                    Data: {}
                };
                apiBase.DoService(
                    data,
                    apiBase.getApiAdress().Code.GetOperatingCode,
                    res => {
                        this.operCodelist = res.data.content;
                    }
                );
            },
            getDead(item) {
                this.deaddata.deadseachno = item.REGBUSNUM;
                this.deaddata.deadid = item.REGID;
                this.deaddata.deadName = item.REGNAME;
                this.deaddata.deaddate = item.REGDEATHDATE;
                this.deaddata.linkMan = item.REGHANDLERNAME;
                this.deaddata.linkTel = item.REGHANDLERLINK;

                this.cdhdata.CARLIC = item.Cdh.CARLIC;
                this.cdhdata.CDHDRIVER = item.Cdh.CDHDRIVER;
                this.cdhdata.CDHADDRESS = item.Cdh.CDHADDRESS;
                this.cdhdata.CDHLINKMAN = item.Cdh.CDHLINKMAN;
                this.QueryDriver.map(item => {
                    if(item.STAID === this.cdhdata.CDHDRIVER){
                       this.cdhdata.CDHDRIVER = item.STANAME; 
                    }
                })
                this.$refs.deadSelect.close();
            },
            SeachDead(ev) {
                if (ev.keyCode === 13) {
                    this.IsEnter = true;
                    let data = {
                        ICHICEID: this.icedata.iceid,
                        ICHREGBUSNUM: this.deaddata.deadseachno
                    };
                    apiBase.DoService(
                        data,
                        apiBase.getApiAdress().IceUse.GetRegistrationAndUseByNo,
                        res => {
                            if (res.data.content.REG) {
                                this.deaddata.deadid = res.data.content.REG.REGID;
                                this.deaddata.deadName = res.data.content.REG.REGNAME;
                                this.deaddata.deaddate = res.data.content.REG.REGDEATHDATE;
                                this.deaddata.linkMan = res.data.content.REG.REGHANDLERNAME;
                                this.deaddata.linkTel = res.data.content.REG.REGHANDLERLINK;
                            }
                        }
                    );
                } else {
                    if (this.IsEnter === true) {
                        this.deaddata.deadseachno = "";
                        this.IsEnter = false;
                    }
                }
            },
            refreshData() {
                this.$emit("refreshData");
            },
            geticenotuse(id) {
                apiBase.DoService({ICEID:id}, apiBase.getApiAdress().IceUse.QueryIceBynotuse, res => {
                this.icelist = res.data.content;
                });
            },
            getcode() {
             //获取经办人下拉
            apiBase.DoService(
                {STACODNAME:'殡仪员'},
                apiBase.getApiAdress().User.QueryUsrAll,
                res => {
                    let mehTypeData = res.data.content,
                        legendsMehData = mehTypeData.map(item => ({
                            label: item.USRNAME,
                            value: item.USRNAME
                        }));
                    this.icejbr = legendsMehData;
                }
            );
            }
        },
        components: {
            printmodal,
            sweetModal
        },
        directives: {
            focus: {
                update: function(el) {
                    el.children[0].focus();
                }
            }
        },
        watch: {
            "seachdataExtent.Regdate": function(val) {
                this.seachdata.RegdateEquals = formatDate(val, "yyyyMMdd");
            },
            "ichdataExtend.saveDates": function(val) {
                if (val) {
                    this.ichdata.savedate = formatDate(val, "yyyyMMdd");
                    this.ichdata.savetime = formatDate(val, "hhmmss");
                }
            },
            "ichdataExtend.ichEndDates": function(val) {
                if (val) {
                    this.ichdata.takedate = formatDate(val, "yyyyMMdd");
                    this.ichdata.taketime = formatDate(val, "hhmmss");
                }
            }
        },
        created() {
            apiBase.DoService({}, apiBase.getApiAdress().Param.GetIsTableIce, res => {
                this.isTableIce = res.data.content;
            });
            apiBase.DoService({}, apiBase.getApiAdress().Staff.QueryDriver, res => {
                this.QueryDriver = res.data.content;
            });
            //冰柜使用是否显示进柜人 出柜人
            apiBase.DoService({}, apiBase.getApiAdress().Param.GetIsShowFreezerIncomingPerson, res => {
                this.showjbr = res.data.content;
            });
            //冰柜图形化存入提交是否打印冷藏通知单
            apiBase.DoService({}, apiBase.getApiAdress().Param.GetIsPrintColdService, res => {
                this.isprint = res.data.content;
            });
            this.getcode(); //获取经办人下拉
        },
    };
</script>

